function setLabels(docLabels){
	console.log(JSON.stringify(docLabels))
	localStorage.setItem('docLabels',docLabels);
	hui.open('count/signConut.html',{},true)
}
function getdoc(){
	hui.ajax({
	    type : 'POST',
	    url : globleobj['domain']+'/doctor/getsigncount',
	    data : {'doc_id':doctorUser.doc_id},
	    beforeSend : function(){hui.loading();},
	    complete   : function(){hui.closeLoading();},
	    success : function(msg){
	    	console.log('getsigncount:'+msg)
	    	var data = JSON.parse(msg)
	    	if(data.rc != 0){
	    		hui.toast(data.msg);
	    		return false; 
	    	}
	    	hui(".hospitalweek").html(data.data.hospital.week);
	    	hui(".hospitaltotal").html(data.data.hospital.total);
	    	hui(".groupweek").html(data.data.group.week);
	    	hui(".grouptotal").html(data.data.hospital.total);
	    	var options = '';
	    	for (var i = 0; i < data.data.label.length ; i++) {
	    		var label_name = JSON.stringify(data.data.label[i].label_name).replace(/"/g, "&quot;")
	    		options +=  '<li onclick="setLabels('+label_name+')">'+
		                			'<a href="javascript:void(0)">'+
		                    			'<div class="hui-list-text">'+
											'<span class="teamName">'+data.data.label[i].label_name+'</span>'+
											'<div class="hui-list-info">'+
												'<span class="teamCount">('+data.data.label[i].week+','+data.data.label[i].total+'）</span>'+
												'<span class="hui-icons hui-icons-right"></span>'+
											'</div>'+
										'</div>'+
					                '</a>'+
				            	'</li>' 
	    	}
	    	hui(".docLabel").html(options)
	    },
	    error : function(e){
	        console.log(JSON.stringify(e));
	        hui.iconToast('读取消息失败', 'warn');
	    } 
	}); 
}
hui.ready(function(){
	//getdoc()
	//跳转首页
	hui('#nav-home').click(function(){
	    hui.open('homepage.html')
	});
	//跳转应用
	hui('#nav-forum').click(function(){
	    hui.open('application.html')
	});
	//跳转个人中心
	hui('#nav-my').click(function(){
	    hui.open('personcenter.html')
	});
	
    hui.plusReady(function(){
    	console.log('plusReady')
    });
});